import Vue from 'vue'
import Router from 'vue-router'

// 业务管理
import Home from '@/components/common/home'
import WorkList from '@/components/pages/worklist'
import jobDescription from '@/components/pages/jobDescription'
import projectReview from '@/components/pages/projectReview'
import OrgManagement from '@/components/pages/orgManagement'
import org from '@/components/pages/org'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      //name: 'HelloWorld',
      //component: HelloWorld
      redirect: '/home'
    },

    {
      path: '/home',
      name: "Home",
      component: Home,
      children:[
        {
          path:'/task_plan',
          component:WorkList,
        },
        {
          path:'/pb_user',
          component:jobDescription,
        },
        {
          path:'/pb_station',
          component:projectReview,
        },
        {
          path: '/pb_org',
          component: org,
        }
      ]
    }
  ]
})
